<template>
  <a-result status="404" title="404" sub-title="Sorry, the page you visited does not exist.">
    <template #extra>
      <a-button type="primary" @click="toHome">
        Back Home
      </a-button>
    </template>
  </a-result>
</template>

<script>
import storage from 'store';
import { USER_TYPE } from '@/store/mutation-types';
export default {
  name: 'Exception404',
  methods: {
    toHome () {
      console.log('111')
      var roles = sessionStorage.getItem(USER_TYPE)
      var path = roles == 2 ? '/servicesWorkBench/workBench' : '/companysProjects/projectsList';
      console.log(path,'path');
      this.$router.push({ path: path,})
    }
  }
}
</script>
